import request from "../utils/request";

export function uploadFile(data) {
  return request({
    url: "/file/cos/upload",
    headers: { "Content-Type": "multipart/form-data" },
    method: "post",
    data,
  });
}

export function initUpload(data) {
  return request({
    url: "/large/file/init",
    method: "post",
    data,
  });
}

